package com.jshoperxms.entity;

import javax.persistence.*;

/**
 * Created by sdywcd on 2019/3/4.
 * Des:
 */
@Entity
@Table(name = "yd_team_target_t", schema = "jshoperxms", catalog = "")
public class YdTeamTargetT {
    private String id;
    private String status;
    private long createtime;
    private String creatorid;
    private long updatetime;
    private int versiont;
    private String teamid;
    private String memberid;
    private String wxopenid;
    private String targetname;
    private String targetnote;
    private String targettype;
    private int targettimes;
    private long finishtargettime;
    private String rewardcontent;
    private String targetstatus;
    private long targetbegintime;
    private long targetendtime;
    private String targetcategoryname;
    private String targetcategoryid;
    private int currentmember;

    @Id
    @Column(name = "ID", nullable = false, length = 25)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "STATUS", nullable = false, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "CREATETIME", nullable = false)
    public long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "CREATORID", nullable = false, length = 25)
    public String getCreatorid() {
        return creatorid;
    }

    public void setCreatorid(String creatorid) {
        this.creatorid = creatorid;
    }

    @Basic
    @Column(name = "UPDATETIME", nullable = false)
    public long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(long updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "VERSIONT", nullable = false)
    public int getVersiont() {
        return versiont;
    }

    public void setVersiont(int versiont) {
        this.versiont = versiont;
    }

    @Basic
    @Column(name = "TEAMID", nullable = false, length = 25)
    public String getTeamid() {
        return teamid;
    }

    public void setTeamid(String teamid) {
        this.teamid = teamid;
    }

    @Basic
    @Column(name = "MEMBERID", nullable = false, length = 25)
    public String getMemberid() {
        return memberid;
    }

    public void setMemberid(String memberid) {
        this.memberid = memberid;
    }

    @Basic
    @Column(name = "WXOPENID", nullable = false, length = 45)
    public String getWxopenid() {
        return wxopenid;
    }

    public void setWxopenid(String wxopenid) {
        this.wxopenid = wxopenid;
    }

    @Basic
    @Column(name = "TARGETNAME", nullable = false, length = 100)
    public String getTargetname() {
        return targetname;
    }

    public void setTargetname(String targetname) {
        this.targetname = targetname;
    }

    @Basic
    @Column(name = "TARGETNOTE", nullable = false, length = 500)
    public String getTargetnote() {
        return targetnote;
    }

    public void setTargetnote(String targetnote) {
        this.targetnote = targetnote;
    }

    @Basic
    @Column(name = "TARGETTYPE", nullable = false, length = 1)
    public String getTargettype() {
        return targettype;
    }

    public void setTargettype(String targettype) {
        this.targettype = targettype;
    }

    @Basic
    @Column(name = "TARGETTIMES", nullable = false)
    public int getTargettimes() {
        return targettimes;
    }

    public void setTargettimes(int targettimes) {
        this.targettimes = targettimes;
    }

    @Basic
    @Column(name = "FINISHTARGETTIME", nullable = false)
    public long getFinishtargettime() {
        return finishtargettime;
    }

    public void setFinishtargettime(long finishtargettime) {
        this.finishtargettime = finishtargettime;
    }

    @Basic
    @Column(name = "REWARDCONTENT", nullable = false, length = 500)
    public String getRewardcontent() {
        return rewardcontent;
    }

    public void setRewardcontent(String rewardcontent) {
        this.rewardcontent = rewardcontent;
    }

    @Basic
    @Column(name = "TARGETSTATUS", nullable = false, length = 1)
    public String getTargetstatus() {
        return targetstatus;
    }

    public void setTargetstatus(String targetstatus) {
        this.targetstatus = targetstatus;
    }

    @Basic
    @Column(name = "TARGETBEGINTIME", nullable = false)
    public long getTargetbegintime() {
        return targetbegintime;
    }

    public void setTargetbegintime(long targetbegintime) {
        this.targetbegintime = targetbegintime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        YdTeamTargetT that = (YdTeamTargetT) o;

        if (createtime != that.createtime) return false;
        if (updatetime != that.updatetime) return false;
        if (versiont != that.versiont) return false;
        if (targettimes != that.targettimes) return false;
        if (finishtargettime != that.finishtargettime) return false;
        if (targetbegintime != that.targetbegintime) return false;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (creatorid != null ? !creatorid.equals(that.creatorid) : that.creatorid != null) return false;
        if (teamid != null ? !teamid.equals(that.teamid) : that.teamid != null) return false;
        if (memberid != null ? !memberid.equals(that.memberid) : that.memberid != null) return false;
        if (wxopenid != null ? !wxopenid.equals(that.wxopenid) : that.wxopenid != null) return false;
        if (targetname != null ? !targetname.equals(that.targetname) : that.targetname != null) return false;
        if (targetnote != null ? !targetnote.equals(that.targetnote) : that.targetnote != null) return false;
        if (targettype != null ? !targettype.equals(that.targettype) : that.targettype != null) return false;
        if (rewardcontent != null ? !rewardcontent.equals(that.rewardcontent) : that.rewardcontent != null)
            return false;
        if (targetstatus != null ? !targetstatus.equals(that.targetstatus) : that.targetstatus != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (int) (createtime ^ (createtime >>> 32));
        result = 31 * result + (creatorid != null ? creatorid.hashCode() : 0);
        result = 31 * result + (int) (updatetime ^ (updatetime >>> 32));
        result = 31 * result + versiont;
        result = 31 * result + (teamid != null ? teamid.hashCode() : 0);
        result = 31 * result + (memberid != null ? memberid.hashCode() : 0);
        result = 31 * result + (wxopenid != null ? wxopenid.hashCode() : 0);
        result = 31 * result + (targetname != null ? targetname.hashCode() : 0);
        result = 31 * result + (targetnote != null ? targetnote.hashCode() : 0);
        result = 31 * result + (targettype != null ? targettype.hashCode() : 0);
        result = 31 * result + targettimes;
        result = 31 * result + (int) (finishtargettime ^ (finishtargettime >>> 32));
        result = 31 * result + (rewardcontent != null ? rewardcontent.hashCode() : 0);
        result = 31 * result + (targetstatus != null ? targetstatus.hashCode() : 0);
        result = 31 * result + (int) (targetbegintime ^ (targetbegintime >>> 32));
        return result;
    }

    @Basic
    @Column(name = "TARGETENDTIME", nullable = false)
    public long getTargetendtime() {
        return targetendtime;
    }

    public void setTargetendtime(long targetendtime) {
        this.targetendtime = targetendtime;
    }

    @Basic
    @Column(name = "TARGETCATEGORYNAME", nullable = false, length = 45)
    public String getTargetcategoryname() {
        return targetcategoryname;
    }

    public void setTargetcategoryname(String targetcategoryname) {
        this.targetcategoryname = targetcategoryname;
    }

    @Basic
    @Column(name = "TARGETCATEGORYID", nullable = false, length = 25)
    public String getTargetcategoryid() {
        return targetcategoryid;
    }

    public void setTargetcategoryid(String targetcategoryid) {
        this.targetcategoryid = targetcategoryid;
    }

    @Basic
    @Column(name = "CURRENTMEMBER", nullable = false)
    public int getCurrentmember() {
        return currentmember;
    }

    public void setCurrentmember(int currentmember) {
        this.currentmember = currentmember;
    }
}
